<template>
  <div id="centreRight1">
    <div class="bg-color-black">
      <div class="d-flex pt-2 pl-2">
        <span style="color:#5cd9e8">
          <icon name="chart-line"></icon>
        </span>
        <div class="d-flex">
          <span class="fs-xl text mx-2">业务部门资金占用排名</span>
        </div>
      </div>
      <div class="d-flex jc-center body-box">
        <dv-scroll-board :config="config" style="width:600px;height:330px" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ["listData"],
  watch: {
   listData(newValue) {
      
      const { config } = this;
      this.config.data = newValue;
      this.config = { ...this.config };
    }
  },
  data() {
    return {
      config: {
        header: ["部门", "项目数", "开票金额","收款金额"],
        data: this.listData,
        rowNum: 7, //表格行数
        headerHeight: 35,
        headerBGC: "#0f1325", //表头
        oddRowBGC: "#0f1325", //奇数行
        evenRowBGC: "#171c33", //偶数行
        index: true,
        columnWidth: [50],
        align: ["center"]
      }
    };
  },
  components: {},
  mounted() {
   
  },
  methods: {
   
  }
};
</script>

<style >
#centreRight1 {
  padding: 1rem;
  height: 410px;
  min-width: 600px;
  border-radius: 5px; }
  #centreRight1 .bg-color-black {
    height: 420px;
    border-radius: 10px; }
  #centreRight1 .text {
    color: #c3cbde; }
  #centreRight1 .body-box {
    border-radius: 10px;
    overflow: hidden; }

</style>